#define _XTAL_FREQ 4000000
#define FILAS    PORTC
#define COLUMNAS PORTB

int main(void) {
    unsigned char fil=0,col=0,letra=0;
    unsigned char mostrar[3][8]={{0x0,0x3C,0x42,0x42,0x42,0x42,0x42,0x7E},{0x6,0xC,0x18,0x60,0x60,0x18,0xC,0x6},{0x0,0x0,0x61,0x92,0x94,0x98,0x70,0x0}};
    unsigned char var=1;

    while (1)
    {
        for(letra=0;letra<2;letra++)
        {
        var=254;
        for (col=0;col<7;col++)
        {
            fil=mostrar[letra][col];
            var=~(1<<col);
            FILAS=fil;
            COLUMNAS=var;
            __delay_ms(10);
        }
        __delay_ms(20);
        }
    }
}